#python 环境搭建
#1 安装ez install----setuptools-0.6c11.win32-py2.7.exe

#2 easy_install下安装pip
easy_install pip

#3 pip下安装virtualenv
pip install virtualenv

#创建虚拟环境
	CD C:\Python27\Scripts
	virtualenv.exe vProject

#4 安装MySQLdb---MySQL-python-1.2.5.win32-py2.7.exe

#5 安装py2exe----py2exe-0.6.9.win32-py2.7.exe

#6 安装bs4----beautifulsoup4-4.3.2.zip
setup.py build
setup.py install

#7 安装Django
pip install Django	#1
pip install Django -i http://pypi.douban.com/simple		#2





#-------------------------------------
#py3exe打包
C:\Documents and Settings\Administrator>D:
D:\>CD D:\pydocument\py2exe
D:\pydocument\py2exe>python setup.py py2exe

#filename:setup.py
#coding: utf-8
#getPageDatesToDatabase.py打包成exe
#帮助文档http://www.py2exe.org/index.cgi/Py2exeAndPyQt

# # Solution
# from py2exe.build_exe import py2exe
# from distutils.core import setup
# setup( console=[{"script": "main.py"}] )
	
  
# # Another Solution to the same problem:	  
# from distutils.core import setup
# import py2exe
# setup(windows=[{"script":"main.py"}], options={"py2exe":{"includes":["sip"]}})
